package io.bdmc.modules.sys.mapper;

import io.bdmc.common.utils.MyPage;
import io.bdmc.modules.sys.entity.SysUser;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 系统用户 Mapper 接口
 * </p>
 *
 * @author HuangLu
 * @since 2019-04-04
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

	List<String> queryAllPerms(@Param("userId") Long userId);

	List<Long> queryAllMenuId(@Param("userId") Long userId);

	MyPage<SysUser> queryList(@Param("myPage") MyPage<SysUser> myPage,@Param("username") String username);

	List<String> queryNameByDepIds(@Param("ids") Long[] ids);

	SysUser queryObject(Long userId);

}
